<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Newton Dynamics: cuVector Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_php.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Newton Dynamics
   &#160;<span id="projectnumber">4.00</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classcu_vector.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classcu_vector-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cuVector Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for cuVector:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcu_vector.png" usemap="#cuVector_map" alt=""/>
  <map id="cuVector_map" name="cuVector_map">
<area href="classcu_quat.html" alt="cuQuat" shape="rect" coords="0,112,64,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a596cb509a52a4f5736b58684089a7b6f"><td class="memItemLeft" align="right" valign="top"><a id="a596cb509a52a4f5736b58684089a7b6f"></a>
__device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>cuVector</b> (float val)</td></tr>
<tr class="separator:a596cb509a52a4f5736b58684089a7b6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace6192525644d347196977c01874654a"><td class="memItemLeft" align="right" valign="top"><a id="ace6192525644d347196977c01874654a"></a>
__device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>cuVector</b> (float val_x, float val_y, float val_z, float val_w)</td></tr>
<tr class="separator:ace6192525644d347196977c01874654a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a268ad382448be720c1878b5dc20b6a52"><td class="memItemLeft" align="right" valign="top"><a id="a268ad382448be720c1878b5dc20b6a52"></a>
__device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>cuVector</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;src)</td></tr>
<tr class="separator:a268ad382448be720c1878b5dc20b6a52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad35edd1f856f2cdea2521e5cc356541f"><td class="memItemLeft" align="right" valign="top"><a id="ad35edd1f856f2cdea2521e5cc356541f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>cuVector</b> (const <a class="el" href="classnd_vector.html">ndVector</a> &amp;src)</td></tr>
<tr class="separator:ad35edd1f856f2cdea2521e5cc356541f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fcdf23d1b1f9d3bb16d82eb69ce8bf4"><td class="memItemLeft" align="right" valign="top"><a id="a0fcdf23d1b1f9d3bb16d82eb69ce8bf4"></a>
<a class="el" href="classnd_vector.html">ndVector</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ToNdVector</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;src) const</td></tr>
<tr class="separator:a0fcdf23d1b1f9d3bb16d82eb69ce8bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8ff6d1a8e1c4dc938bc01c66968f395"><td class="memItemLeft" align="right" valign="top"><a id="ac8ff6d1a8e1c4dc938bc01c66968f395"></a>
float __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>GetElement</b> (int i) const</td></tr>
<tr class="separator:ac8ff6d1a8e1c4dc938bc01c66968f395"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1099e9069701374aa1a8e360d9c0cbf4"><td class="memItemLeft" align="right" valign="top"><a id="a1099e9069701374aa1a8e360d9c0cbf4"></a>
void __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>SetElement</b> (int i, float val)</td></tr>
<tr class="separator:a1099e9069701374aa1a8e360d9c0cbf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd10ef205466ae675b38b69fb339e207"><td class="memItemLeft" align="right" valign="top"><a id="afd10ef205466ae675b38b69fb339e207"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>operator+</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:afd10ef205466ae675b38b69fb339e207"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8236b676d587e5c42f24bba6b4bd815"><td class="memItemLeft" align="right" valign="top"><a id="ad8236b676d587e5c42f24bba6b4bd815"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>operator-</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:ad8236b676d587e5c42f24bba6b4bd815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c04d5a44af367fc7e7355f0e029f8ad"><td class="memItemLeft" align="right" valign="top"><a id="a8c04d5a44af367fc7e7355f0e029f8ad"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>operator*</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:a8c04d5a44af367fc7e7355f0e029f8ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abef8d70024640a9fa0e821cdcd5a92d5"><td class="memItemLeft" align="right" valign="top"><a id="abef8d70024640a9fa0e821cdcd5a92d5"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>operator&gt;</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:abef8d70024640a9fa0e821cdcd5a92d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcd4db4d4b80af005c8e65855b02691e"><td class="memItemLeft" align="right" valign="top"><a id="abcd4db4d4b80af005c8e65855b02691e"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:abcd4db4d4b80af005c8e65855b02691e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a207662a4e6875f7fdd07c260201e0bac"><td class="memItemLeft" align="right" valign="top"><a id="a207662a4e6875f7fdd07c260201e0bac"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>Abs</b> () const</td></tr>
<tr class="separator:a207662a4e6875f7fdd07c260201e0bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91d335fda7e6afa21ace30346af118b9"><td class="memItemLeft" align="right" valign="top"><a id="a91d335fda7e6afa21ace30346af118b9"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>Select</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;test, const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:a91d335fda7e6afa21ace30346af118b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37fe6de1c8d39976fb604750999a24b0"><td class="memItemLeft" align="right" valign="top"><a id="a37fe6de1c8d39976fb604750999a24b0"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>Min</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:a37fe6de1c8d39976fb604750999a24b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0fe3245a92c9c09ce071713dae26510"><td class="memItemLeft" align="right" valign="top"><a id="ab0fe3245a92c9c09ce071713dae26510"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>Max</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;A) const</td></tr>
<tr class="separator:ab0fe3245a92c9c09ce071713dae26510"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b14236e09c69a264ecf6b33e0f5ea25"><td class="memItemLeft" align="right" valign="top"><a id="a7b14236e09c69a264ecf6b33e0f5ea25"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>Floor</b> () const</td></tr>
<tr class="separator:a7b14236e09c69a264ecf6b33e0f5ea25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b64646a15559e9117a2e476f8cfdaed"><td class="memItemLeft" align="right" valign="top"><a id="a9b64646a15559e9117a2e476f8cfdaed"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>Scale</b> (float s) const</td></tr>
<tr class="separator:a9b64646a15559e9117a2e476f8cfdaed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf5e8d7bbd2b733199458f2d005ef5e8"><td class="memItemLeft" align="right" valign="top"><a id="abf5e8d7bbd2b733199458f2d005ef5e8"></a>
float __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>AddHorizontal</b> () const</td></tr>
<tr class="separator:abf5e8d7bbd2b733199458f2d005ef5e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57e21bdc016b024952a3b983f13668e1"><td class="memItemLeft" align="right" valign="top"><a id="a57e21bdc016b024952a3b983f13668e1"></a>
float __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>DotProduct</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;B) const</td></tr>
<tr class="separator:a57e21bdc016b024952a3b983f13668e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc19f72cc213acbeea5e7dfcec1f39bb"><td class="memItemLeft" align="right" valign="top"><a id="abc19f72cc213acbeea5e7dfcec1f39bb"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>CrossProduct</b> (const <a class="el" href="classcu_vector.html">cuVector</a> &amp;B) const</td></tr>
<tr class="separator:abc19f72cc213acbeea5e7dfcec1f39bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a839292278dc07a54ef11b397b6f2e2f4"><td class="memItemLeft" align="right" valign="top"><a id="a839292278dc07a54ef11b397b6f2e2f4"></a>
<a class="el" href="classcu_vector.html">cuVector</a> __device__ __host__&#160;</td><td class="memItemRight" valign="bottom"><b>Normalize</b> () const</td></tr>
<tr class="separator:a839292278dc07a54ef11b397b6f2e2f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classcu_vector.html">cuVector</a></li>
    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  </ul>
</div>
</body>
</html>
